import TreeNode from "./TreeNode";
import YTree from "./YTree";
const tree = new YTree();
tree.domElement.appendChild(
  new TreeNode({
    content: "root",
    isExpanded: true,
    children: [
      {
        content: "1-1",
        children: [
          { content: "1-1-1" },
          { content: "1-1-2" },
          { content: "1-1-3" },
        ],
      },
      {
        content: "1-2",
        children: [
          { content: "1-2-1" },
          { content: "1-2-2" },
          { content: "1-2-3" },
        ],
      },
      {
        content: "1-3",
        children: [
          { content: "1-3-1" },
          { content: "1-3-2" },
          { content: "1-3-3" },
        ],
      },
    ],
  }).render()
);

document.querySelector(".container").appendChild(tree.domElement);
